/// access_token : "815b8b36-4a14-4e06-9548-cec276d9a5cb"
/// token_type : "bearer"
/// refresh_token : "f08cf0f5-cba4-49ec-8664-f99b5201e322"
/// expires_in : 99999998
/// scope : "BX"
/// account_type : "sxbdjw"

class LoginToken {
  LoginToken({
      String? accessToken, 
      String? tokenType, 
      String? refreshToken, 
      num? expiresIn, 
      String? scope, 
      String? accountType,}){
    _accessToken = accessToken;
    _tokenType = tokenType;
    _refreshToken = refreshToken;
    _expiresIn = expiresIn;
    _scope = scope;
    _accountType = accountType;
}

  LoginToken.fromJson(dynamic json) {
    _accessToken = json['access_token'];
    _tokenType = json['token_type'];
    _refreshToken = json['refresh_token'];
    _expiresIn = json['expires_in'];
    _scope = json['scope'];
    _accountType = json['account_type'];
  }
  String? _accessToken;
  String? _tokenType;
  String? _refreshToken;
  num? _expiresIn;
  String? _scope;
  String? _accountType;
LoginToken copyWith({  String? accessToken,
  String? tokenType,
  String? refreshToken,
  num? expiresIn,
  String? scope,
  String? accountType,
}) => LoginToken(  accessToken: accessToken ?? _accessToken,
  tokenType: tokenType ?? _tokenType,
  refreshToken: refreshToken ?? _refreshToken,
  expiresIn: expiresIn ?? _expiresIn,
  scope: scope ?? _scope,
  accountType: accountType ?? _accountType,
);
  String? get accessToken => _accessToken;
  String? get tokenType => _tokenType;
  String? get refreshToken => _refreshToken;
  num? get expiresIn => _expiresIn;
  String? get scope => _scope;
  String? get accountType => _accountType;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['access_token'] = _accessToken;
    map['token_type'] = _tokenType;
    map['refresh_token'] = _refreshToken;
    map['expires_in'] = _expiresIn;
    map['scope'] = _scope;
    map['account_type'] = _accountType;
    return map;
  }

}